package com.stoken.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class TravelApply implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY) 
	private long id;
	
	@ManyToOne
	@JoinColumn(name="base_username",nullable=false)
	private MemberBaseInfo baseUsername;
	
	/**
	 * 登陆用户名
	 */
	private String username;
	
	@ManyToOne
	@JoinColumn(name="line_info",nullable=false)
	private TypeLineInfo lineInfo;
	
	/**
	 * 0代表未审核
	 * 1代表审核通过
	 * 2代表未通过
	 */
	private int state;
	
	private Date  applyDate;
	
	/**
	 * 0 代表没有
	 * 1 代表有
	 */
	private int child;
	
	private String name;
	
	/**
	 * 0代表男
	 * 1代表女
	 */
	private int sex;
	
	private String cardno;
	
	private String hkmaCardno; 
	
	private String passport;
	
	private String address;
	
	private String phone;
	
	private String email;
	
	private String remark;
	
	@Temporal(TemporalType.DATE)
	private Date createTime;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Date getApplyDate() {
		return applyDate;
	}

	public void setApplyDate(Date applyDate) {
		this.applyDate = applyDate;
	}

	public int getChild() {
		return child;
	}

	public void setChild(int child) {
		this.child = child;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getCardno() {
		return cardno;
	}

	public void setCardno(String cardno) {
		this.cardno = cardno;
	}

	public String getHkmaCardno() {
		return hkmaCardno;
	}

	public void setHkmaCardno(String hkmaCardno) {
		this.hkmaCardno = hkmaCardno;
	}

	public String getPassport() {
		return passport;
	}

	public void setPassport(String passport) {
		this.passport = passport;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public MemberBaseInfo getBaseUsername() {
		return baseUsername;
	}

	public void setBaseUsername(MemberBaseInfo baseUsername) {
		this.baseUsername = baseUsername;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public TypeLineInfo getLineInfo() {
		return lineInfo;
	}

	public void setLineInfo(TypeLineInfo lineInfo) {
		this.lineInfo = lineInfo;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	

}
